﻿using System.ComponentModel.DataAnnotations;
using YNTK.Common.Enum;
using YNTK.Common.Filter;

namespace YNTK.System.Entitys.Dto.Permission.Organize
{
    /// <summary>
    /// 分页查询组织数据请求模型
    /// </summary>
    public class QueryOrganizeFilterRequestModel: PageBaseRequestModel
    {
        /// <summary>
        /// 行政区划,如云南省-昆明市
        /// </summary>
        public string area { get; set; }

        /// <summary>
        /// 状态(null.全部 0.未开通 1.已开通 2.服务到期 3.服务终止)
        /// </summary>
        public OrganizeStateEnum? state { get; set; }

        /// <summary>
        /// 是否有效
        /// </summary>
        public int? enabledMark { get; set; }

        /// <summary>
        /// 模糊查询,组织名称、组织代码
        /// </summary>
        /// <example></example>
        public string keyword { get; set; }
    }

    /// <summary>
    /// 分页查询组织服务记录数据请求模型
    /// </summary>
    public class QueryOrganizeOpenRecordFilterRequestModel: PageBaseRequestModel
    {
        /// <summary>
        /// id
        /// </summary>
        [Required(ErrorMessage = "组织唯一标识不能为空")]
        public string id { get; set; }

        /// <summary>
        /// 服务类型(null.全部 0.开通服务 1.服务到期 2.服务终止)
        /// </summary>
        public OrganizeServiceTypeEnum? serviceType { get; set; }
    }
}
